Example: a newsletter class

A simple newsletter can be typeset with LATEX, using a variant of the |article| class. The class begins by announcing itself as |smplnews.cls|.

   \NeedsTeXFormat{LaTeX2e}
   \ProvidesClass{smplnews}[1995/04/01 The Simple News newsletter class]

   \newcommand{\headlinecolor}{\normalcolor}
It passes most specified options on to the |article| class: apart from the |onecolumn| option, which is switched off, and the |green| option, which sets the headline in green.
   \DeclareOption{onecolumn}{\OptionNotUsed}
   \DeclareOption{green}{\renewcommand{\headlinecolor}{\color{green}}}

   \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}

   \ProcessOptions
It then loads the class |article| with the option |twocolumn|.
   \LoadClass[twocolumn]{article}
Since the newsletter is to be printed in colour, it now loads the |color| package. The class does not specify a device driver option since this should be specified by the user of the |smplnews| class.
   \RequirePackage{color}
The class then redefines |

LATEX2e for class and package writers

Copyright © 1994 The LATEX3 Project
All rights reserved

1 December 1994

| to produce the title in 72pt Helvetica bold oblique, in the appropriate colour.
   \renewcommand{\maketitle}{%
      \twocolumn[%
         \fontsize{72}{80}\fontfamily{phv}\fontseries{b}%
         \fontshape{sl}\selectfont\headlinecolor
         \@title
      ]%
   }
It redefines |